//index.js
const app = getApp()

 const Api = require("../../utils/api.js").API
 const Store = require("../../utils/store.js").store

Page({
  data: {
    list:{
        
    }
  },
  onLoad(){
      
  },
    onShow: function() {
        var that = this   
        wx.request({
            url: 'https://wechat-api.freshlogic.cn/api/kuai100/logistics/searchLogisticsV2',
            method: 'POST',
            data:{"trackingNumber": "552029613952810"},   
            success(res) { 
        
                    if(res.data.result == true){
                        that.setData({
                            list:res.data.data
                        })
                    }else{             
                            wx.showToast({
                               title:res.data.msg,
                               icon: 'none'
                            });   
                    }          
                } 
           
        })
   
  },
})
